import request from '@/utils/request'
import type { PaywageDetailsStatisticsDto, TodoDto } from './types'
import type { PageDto, PageReqDto, PagesDto } from '../types'


/**
 * 获取待处理数据
 * @param  
 * @returns 
 */
export function getTodoData(): Promise<TodoDto> {
    return request.get('/crm-prod/statistics/wait-handle-job')
}


/**
 * 发薪数据统计
 * @param params 
 * @returns 
 */
export function getEmployeesUnpaid(params: {
    companyId: number
    days: number
}): Promise<PaywageDetailsStatisticsDto> {
    return request.get('/crm-prod/crm/record/get-employees-unpaid', {
        params
    })
}


